const Koa = require('koa');
const app = new Koa();
const cors = require('koa-cors')
const bodyparser = require('koa-bodyparser')
const router = require('./router');
const {sync} = require('./Model')

//  sync();
 console.log(router);


app.use(cors())
app.use(bodyparser())
app.use(router)

app.listen(8000,()=>{
    console.log('http://localhost:8000');
})